package com.ai.manager.edu.cms.info;

import java.util.List;

import com.ai.model.edu.cms.info.InfoPublishDetail;
import com.ai.model.edu.cms.info.vo.InfoPublishDetailVO;

public interface InfoPublishDetailManager {
    /**
     * 根据主键查询记录
     */
    public List<InfoPublishDetailVO> findInfoPublishDetailByAppId(Long id);
    
    /**
     * 根据主键ID集合查询记录
     */
    public List<InfoPublishDetailVO> findInfoPublishDetailByAppIds(List<Long> ids);
    
    /**
     * 批量新增 detail
     * @param list
     * @return
     */
    public void batchAddInfoPublishDetail(List<InfoPublishDetail> list);
    
    /**
     * 根据发布申请id 删除detail
     * @param publishId
     * @return
     */
    public void delInfoPublishDetailByPublishId(Long publishId);
    
    Long updateInfoDetailByInfoId(InfoPublishDetail infoPublishDetail);
}